import App from './App'


// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
// 挂载Dayjs
// import dayjs from 'dayjs'
// Vue.prototype.$DayJs = dayjs

import api from '@/api/index.js'
Vue.prototype.$api = api

import store from '@/store/index.js'
Vue.config.productionTip = false

import mixins from '@/mixins/index.js'
Vue.mixin(mixins);


App.mpType = 'app'
const app = new Vue({
	store,
  ...App,
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp, } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif